<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>
		在线帮助
	</title>
	
	<link rel="stylesheet" type="text/css" href="<%=basePath+Util.SKIN%>/css/right.css">
	<script src="<%=basePath%>/js/jquery-1.7.2.js" type="text/javascript"></script>
    <script src="<%=basePath%>/js/table.js" type="text/javascript"></script>
    <script src="<%=basePath %>/js/dbdialog/lhgdialog.js" type="text/javascript" />
	<SCRIPT type="text/javascript" src="<%=basePath%>/js/checkbox1.js"></SCRIPT>
	<SCRIPT type="text/javascript" src="<%=basePath%>/js/util.js"></SCRIPT>
		<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js" defer="defer"></script>
</head>
  
  <body>
  	<div class="body-box">
		<div class="map">
			<div class="map_con">
				<b>当前位置：</b> 协同办公 &gt; 企业端管理 &gt; 在线帮助
			</div>
		</div>
		<div id="container">			
			<div class="top_search">
			    <fieldset>
				    <legend>查询条件</legend>
				    <form action="<%=basePath%>/oa/corpHelp_list.action?search=1" method="post">
				    	<input type="hidden" name="tableType" value="${tableType }"/>
				    	添加时间：<input name="beginDate" id="time1" class="Wdate" type="text" value="${beginDate }" readonly="readonly" onClick="WdatePicker({maxDate:'#F{$dp.$D(\'time2\')}'})"/>--<input name="endDate" id="time2" class="Wdate" readonly="readonly" type="text" value="${endDate }" onClick="WdatePicker({minDate:'#F{$dp.$D(\'time1\')}'})"/>
				    	标题：<input type="text" name="keyWord" value="${keyWord}">
				    	<input type="submit" value="搜 索" class="link_input" name="btnsx">
				    </form>
				</fieldset>
			</div>
		    <table border="0" cellpadding="0" cellspacing="0" class="mytable">
		    	 <tr class="fixedHeaderTr">
		    		<th width="5%">选择</th>
		    		<th width="5%">序列</th>
		    		<th width="40%">标题</th>
		    		<th width="10%">添加时间</th>
		    		<th width="10%">添加人</th>
		    		<sp:permission module="corpHelp" permissionType="${UPDATE}">
		    			<th width="10%">操作</th>	
		    		</sp:permission>
		    	</tr>
		    	<s:if test="%{msgList.size>0}">
		    		<s:iterator value="msgList" id="msg" status="x">
				    	<tr>
				    		<td align="center"><input type="checkbox" name="ids" value="${msg[0] }"/> </td>			    		
				    		<td align="center">${x.index+1+(page.num-1)*page.size}</td>			    		
				    		<td align="center">
				    		<a href="<%=basePath%>/oa/corpHelp_loadMsg.action?msgId=${msg[0]}&keyWord=${keyWord}&beginDate=${beginDate }&endDate=${endDate }&num=${page.num }&size=${page.size}&tableType=${tableType }&result=corp_help_show">${msg[1] }</a>
				    		</td>			    						    		
				    		<td align="center"><s:date name="#msg[2]" format="yyyy-MM-dd"/></td>				    		
				    		<td align="center">${msg[3] }</td>				    		
				    		<sp:permission module="corpHelp" permissionType="${UPDATE}">
					    		<td align="center">
				    				<a href="<%=basePath%>/oa/corpHelp_loadMsg.action?msgId=${msg[0]}&keyWord=${keyWord}&beginDate=${beginDate }&endDate=${endDate }&num=${page.num }&size=${page.size}&tableType=${tableType }&result=corp_help_edit"><img src="<%=basePath%>/images/Update.gif"/>修改</a>  
					    		</td>	
				    		</sp:permission>    	
				    	</tr>
		    		</s:iterator>
			    </s:if>
			    <s:else>
			    	<tr><td colspan="6" align="center">没有数据</td></tr>
			    </s:else>
			    <tr><td colspan="6" align="left">
			   		 <sp:permission module="corpHelp" permissionType="${CREATE}">
							<input type="button" class="link_input" value=" 新 建 " onclick="window.location.href='<%=basePath%>/oa/corpHelp_loadAdd.action?num=${page.num}&size=${page.size}&keyWord=${keyWord}&beginDate=${beginDate }&endDate=${endDate }&tableType=${tableType }'"/>						
						</sp:permission>
			   		 <sp:permission module="corpHelp" permissionType="${DELETE}">
				    	<input type="button" name="button5" value=" 全 选 " onclick="selectAll('ids');" class="link_input">
						<input type="button" name="button4" value=" 反 选 " onclick="selectReverse('ids');" class="link_input">
						<input type="button" name="button3" value=" 清 空 " onclick="clearAll('ids');" class="link_input">
						<input type="button" name="button2" value=" 删 除 " onclick="dAll('ids','<%=basePath%>/oa/corpHelp_delete.action?keyWord=${keyWord}&beginDate=${beginDate }&endDate=${endDate }&num=${page.num }&size=${page.size}&tableType=${tableType }&ids=',2);" class="link_input">
			    	</sp:permission>
			    </td></tr>
		    </table>
		    <div class="page">
		    	<jsp:include flush="true" page="/WEB-INF/pages/share/fenye.jsp">
				    <jsp:param name="url4page" value="/oa/corpHelp_list.action?keyWord=${keyWord}&beginDate=${beginDate }&endDate=${endDate }&tableType=${tableType }" />
			    </jsp:include>
		    </div>
		</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
	   <script type="text/javascript">
	        msgDialog("${tip}", "succ.png");
	      </script>
	</s:if>
</html>
